﻿//
// Created by Administrator on 2025/4/20/周日.
//

#include "iostream"

using namespace std;

class Person {
public:
    static void func() {
        cout << "静态成员函数调用" << endl;
    }

    static int a;

private:
    static void func2() {

        Person::b = 400;
        cout << "私有静态成员函数调用" << endl;
    }

    static int b;
};

int Person::a = 100;
//int Person::b = 200;这个访问不了一点

int main() {
    Person::func();
//    Person::func2();不能访问，会报错
}